import { Injectable } from "@angular/core";

const devUrl = "";//真实环境的api
const dateUrl = "http://121.43.36.248:2000/"//测试环境的api
// http://api.sinoauto.com/hqls/c/findcitys
export const localURl="http://api.sinoauto.com/location/location";//地区地址
@Injectable()
export class UtilService {
    /**
     * 暂时 通用数据api的url
     */
    constructor() {

    }
    bate_dev(SysCode) {
        if (SysCode == 'dev') {
            //真实环境接口
            return devUrl;
        } else if (SysCode == 'bate') {
            //测试环境接口
            console.log(dateUrl);
            return dateUrl;
        } else {
            //进入异常
        }
    }
}
export const autosize = {
    minRows: 2,
    maxRows: 6
};